<template>
  <!-- 头部部分 -->
  <header class="header">
    <h1>todos</h1>
    <input  class="new-todo" v-model.trim="zhi" placeholder="请输入任务名称" autofocus @keyup.enter="$emit('jiaru',zhi)" @keyup.esc="zhi=''"/>
  </header>
</template>

<script>
export default {
  data () {
    return {
      zhi:''
    }
  },
  methods: {

  }
}
</script>

<style></style>
